/* CSS Reset - 浏览器样式重置 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-size: 22px; /* 基础字体大小 */
}

body {
  margin: 0;
  padding: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    'Helvetica Neue',
    Helvetica,
    Segoe UI,
    Arial,
    Roboto,
    'PingFang SC',
    'miui',
    'Hiragino Sans GB',
    'Microsoft Yahei',
    sans-serif;
  font-size: 1rem; /* 继承html的22px */
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

/* 标题元素重置 */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  font-weight: normal;
  font-size: inherit;
}

/* 列表重置 */
ul,
ol,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 链接重置 */
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

a:hover {
  text-decoration: none;
}

/* 表单元素重置 */
button,
input,
optgroup,
select,
textarea {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

input,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* 表格重置 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 图片和媒体元素 */
img,
video,
audio,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 其他元素重置 */
blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

hr {
  border: 0;
  height: 1px;
  background: #ccc;
  margin: 1rem 0;
}

/* VantUI 基础样式变量 */
:root {
  --van-primary-color: #1989fa;
  --van-success-color: #07c160;
  --van-danger-color: #ee0a24;
  --van-warning-color: #ff976a;
  --van-text-color: #323233;
  --van-text-color-2: #646566;
  --van-text-color-3: #969799;
  --van-background-color: #f7f8fa;
  --van-background-color-light: #fafafa;
}

/* 禁用移动端点击高亮 */
* {
  -webkit-tap-highlight-color: transparent;
}

/* 禁用长按选择 */
* {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* 确保图片等元素正常显示 */
img {
  -webkit-touch-callout: default;
  -webkit-user-select: none;
  pointer-events: none;
}

/* 应用容器样式 */
.app-container {
  min-height: 100vh;
  background-color: #0f0f23;
  background-image: linear-gradient(
    135deg,
    #0f0f23 0%,
    #1a1a2e 50%,
    #16213e 100%
  );
  position: relative;
  overflow-x: hidden;
}

/* 页面加载时的平滑过渡 */
.app-container::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  z-index: -1;
  pointer-events: none;
}

/* 优化滚动性能 */
html {
  scroll-behavior: smooth;
}
